package lab02.test13;

public class School extends ComputerAverage {
    //行为：计算平均分的方法是直接是总分除以总科目。
    double data[];
    School() {
    }
    School(double data[]) {
        this.data = data;
    }
    @Override
    double average(double data[]) {
        double sum = 0;
        for (int i = 0; i < data.length; i++) {
            sum += data[i];
        }
        sum = sum / data.length;
        return sum;
    }


}
